package practice1;

import sun.security.x509.IssuerAlternativeNameExtension;

public class Teacher extends Person{
    double salary ;
    Teacher(String name,int age,char gender,double salary){

        super(name,age,gender);
        this.salary = salary;

    }

    void teach(){
        System.out.println(name+"正在上课");
    }
    void show(){
        System.out.println("大家好,我叫"+name+",我今年"+age+"岁了,性别是:"+gender+"我的工资是"+salary);
    }



}
